package com.project.xy.controller;

import com.project.xy.entity.DModuleDetails;
import com.project.xy.service.DModuleDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/dModuleDetails")
public class  DModuleDetailsController   {
    @Autowired
    private DModuleDetailsService dModuleDetailsService;
    @PostMapping("/queryDModuleDetailsByProductId.action")
    public List<DModuleDetails> queryDModuleDetailsByProductId(String productId){
        List<DModuleDetails> dModuleDetails = dModuleDetailsService.queryDModuleDetailsByProductId(productId);
        return dModuleDetails;
    }

}
